<!-- -->
<template>
	<view @touchmove.stop.prevent>
		<view class="mask" @touchmove.stop.prevent="moveHandle"></view>
		<view :class="['container','up',donwAni&&'aniclose' ]">
			<view class="tip-pay"><text @click="closePayPage">取消</text><text>支付</text></view>
			<view class="moneytitle">￥<text>{{monery||0}}</text></view>
			<view class="moneyInfo">服务内容</view>
			<view class="moneyInfobar">
				<text> {{title}} </text>
			</view>
			<view class="payTapyTitle">支付方式</view>
			<view class="choosePay">
				<view class="payItem" @click="handleSelect(2)">
					<image src="https://images.linglinggong.net/static/icon1/yue.png" mode="aspectFill"></image>
					<text>余额<text class="yueText">￥{{ userInfo.amount/100 }}</text></text>
					<view :class="requestObj.payType==2 ? 'selected' : 'select'"></view>
				</view>
				<view class="payItem" @click="handleSelect(3)">
					<image src="https://images.linglinggong.net/static/icon1/wechat.png" mode="aspectFill"></image>
					<text>微信</text>
					<view :class="requestObj.payType==3 ? 'selected' : 'select'"></view>
				</view>
			</view>
			<view class="confirm" @click="handlePayBond">确认支付</view>
			<!-- 支付密码弹框 -->
			<view v-if="isOpenModal" class="share-modal">
				<view class="main" :class="{'errorpw':isShowPassWordAnimation}">
					<image @click="handleCloseModal" class="close"
						src="https://images.linglinggong.net/static/icon1/47.png"></image>
					<view class="modal-title">
						<text>请输入支付密码</text>
					</view>
					<view class="modal-content">
						<view class="modal-content-line">
							<u-line color="#ccc"></u-line>
						</view>
						<view class="modal-content-money">
							<view class="rmb">￥</view>
							<view class="rmb-num">{{monery||0}}</view>
						</view>
						<view class="modal-content-type">
							<view class="modal-content-type-left">支付方式</view>
							<view class="modal-content-type-right">
								<image src="https://images.linglinggong.net/static/rmb.png" mode="widthFix"></image>
								<text>余额</text>
							</view>
						</view>
					</view>
					<view class="pay-code">
						<input type="number" :focus="focus" v-model="requestObj.payPwd" maxlength="6"
							@input="getPayCode" />
						<block v-for="(item, index) in ranges" :key="index">
							<view :class="['box', { active: codeIndex === item}]">
								<view class="line"></view>
								<text>{{ codeArr[index] ? codeArr[index] : ''}}</text>
							</view>
						</block>
					</view>
					<view class="repwd" v-if="!isShowForgetPassword" @click="toRePasssWord">忘记密码</view>
					<view class="repwd" style="color: #FE4B28;" v-if="isShowForgetPassword" @click="toRePasssWord">忘记密码
					</view>
				</view>
			</view>
			<u-modal @cancel="handleZf" @confirm="handleZf" cancelText="重新支付" confirmText="已支付" confirmColor="#F39B19"
				:show="isShowZfConf" showCancelButton>
				<view class="slot-content">
					<text style="font-size: 34rpx;padding-bottom: 0;">是否已支付？</text>
				</view>
			</u-modal>
		</view>
	</view>
</template>
<script>
	import showModalButton from '@/components/showModalButton/showModalButton.vue'
	export default {
		name: 'ChangePay',
		props: {
			title: { //服务内容
				type: String,
				default: ''
			},
			monery: { //支付金额
				type: [Number, String],
				default: 0
			},
			url: { //支付金额请求地址
				type: String,
				default: ''
			},
			keyWorld: { //金额字段
				type: [Number, String],
				default: ''
			},
			contnet: { //获取请求的数据
				type: Object,
				default: () => {
					return {}
				}
			},
			isJson: { //区分接口入参
				type: [Number, String],
				default: ''
			},
			unsealId: { //记录id
				type: [Number, String],
				default: ''
			},
			carddosageId: { //记录id
				type: [Number, String],
				default: ''
			},
			cardId: { //记录id
				type: [Number, String],
				default: ''
			},
		},
		data() {
			return {
				focus: false, //键盘输入焦点
				codeIndex: 1,
				codeArr: [], //密码
				ranges: [1, 2, 3, 4, 5, 6],
				isOpenModal: false, //是否打开分享弹框
				requestObj: {
					payPwd: '',
					payType: 3, //5支付宝，4微信，2钱包
					account: '',
					unsealId: this.unsealId,
					carddosageId: this.carddosageId,
					cardId: ''
				},
				userInfo: {
					user: {},
					params: {}
				}, //当前用户信息
				bond: '', //每人诚意金
				isShowForgetPassword: false, //是否弹出忘记密码
				isShowPassWordAnimation: false, //密码错误执行动画
				modalStytle: 99,
				contentColor: '#000000',
				leftContext: '暂时放弃',
				rightContext: '继续支付',
				ssurl: '',
				trade: '',
				isShowZfConf: false,
				zhifubao: false,
				zhifubaole: false,
				weixin: false,
				weixinle: false,
				donwAni: false, // 向下动画
			};
		},
		mounted() {
			console.log(this.cardId, 7777)
			this.requestObj.cardId = this.cardId
			console.log(this.title, '1111111');
		},
		methods: {
			//付款成功的回调
			paySuccess() {
				this.$emit('paySuccess')
			},
			async handleZf() {
				let res = await this.$fetch(this.$api.findUserPayOrder, {}, 'POST')
				if (res.code) {
					uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					setTimeout(() => {
						this.isShowZfConf = false
					}, 500)
					return
				}
				if (res.data.outTradeStatus == 2) {
					this.$emit('closePayPage');
					this.paySuccess()
					uni.showToast({
						title: '已成功支付',
						icon: 'none'
					})
					setTimeout(() => {
						this.closePayPage(true)
					}, 800)
				} else {
					uni.showToast({
						title: '未支付，请及时支付',
						icon: 'none'
					})
				}
				this.isShowZfConf = false
				uni.removeStorageSync('tempTrade')
				uni.removeStorageSync('wxTempTrade')
				uni.removeStorageSync('iswxzf')
			},
			//关掉页面
			closePayPage(flag) {
				this.donwAni = true
				setTimeout(() => {
					this.$emit('closePayPage', flag);
					this.donwAni = false
				}, 300)
			},
			// 得到输入的密码
			getPayCode(e) {
				let {
					value
				} = e.detail
				let del = false
				this.requestObj.payPwd = value
				if (value.length < this.codeArr.length) {
					del = true
				}
				this.codeArr.length = value.length
				this.codeArr.fill("●")
				this.codeIndex = this.codeArr.length + 1
				if (del) {
					return
				}
				this.codeArr[value.length - 1] = value[value.length - 1]
				setTimeout(() => {
					if (this.codeArr.length != 0) {
						this.$set(this.codeArr, [this.codeArr.length - 1], "●")
					}
				}, 1000)
				if (this.codeIndex == 7) {
					this.handleComfirmPay()
				}
			},
			//点击链接至账户安全。
			toRePasssWord() {
				uni.navigateTo({
					url: '/pages/account-security/account-security'
				})
			},
			// 支付
			async handleComfirmPay() {
				this.requestObj.unsealId = this.unsealId
				this.requestObj.carddosageId = this.carddosageId
				this.requestObj.cardId = this.cardId
				let jsons = null
				if (this.isJson == 1) {
					jsons = this.$fetch(
						`${this.url}?payType=${this.requestObj.payType}&payPwd=${this.requestObj.payPwd}`, {
							account: this.monery,
							payPwd: this.requestObj.payPwd,
							cardId: this.requestObj.cardId,
							...this.contnet
						}, 'POST', 'JSON')
				} else {
					jsons = this.$fetch(`${this.url}`, {
						account: this.monery,
						payPwd: this.requestObj.payPwd,
						...this.contnet,
						cardId: this.requestObj.cardId,
						payType: this.requestObj.payType
					}, 'POST');
				}
				(jsons).then(res => {
					let {
						code,
						msg
					} = res
					if (code == 500) {
						this.emptyInput()
					}
					if (code == 0) {
						this.$emit('closePayPage');
						this.paySuccess()
					}
					uni.showToast({
						title: res.msg || '数据错误',
						icon: 'none'
					})
				}).finally(e => {
					this.showPopup = false
				})
			},
			//清空输入框，更新是否弹出忘记密码标识
			emptyInput() {
				this.isShowPassWordAnimation = true
				this.isShowForgetPassword = true
				this.requestObj.payPwd = ''
				this.codeArr = []
				this.codeIndex = 1
				setTimeout(() => {
					this.isShowPassWordAnimation = false
				}, 1200)
			},
			// 关闭分享弹框
			handleCloseModal() {
				console.log(this.cardId, 8888)
				this.isOpenModal = false
				this.requestObj.payPwd = ''
				this.codeArr = []
				this.codeIndex = 1
			},
			//选择提现类型
			handleSelect(index) {
				this.requestObj.payType = index
				if (index == 2) {
					if (uni.getStorageSync('isHavePayPassword') == false) {
						this.setPayPassword()
					}
				}
			},
			// 确认发布，
			async handlePayBond() {
				// this.$set(this.requestObj, this.keyWorld, this.monery)
				// let _this = this
				// //支付宝支付
				// if (this.requestObj.payType == 5) {
				// 	let jsons = null
				// 	if (this.isJson == 1) {
				// 		jsons = await this.$fetch(
				// 			`${this.url}?payType=${this.requestObj.payType}&payPwd=${this.requestObj.payPwd}`, {
				// 				account: this.monery,
				// 				payPwd: this.requestObj.payPwd,
				// 				...this.contnet,
				// 				commodityPrice: this.contnet.commodityPrice
				// 			}, 'POST', 'JSON')
				// 	} else {
				// 		jsons = await this.$fetch(`${this.url}`, {
				// 			account: this.monery,
				// 			payPwd: this.requestObj.payPwd,
				// 			...this.contnet,
				// 			commodityPrice: this.contnet.commodityPrice,
				// 			payType: this.requestObj.payType
				// 		}, 'POST');
				// 	}
				// 	let res = jsons
				// 	if (res.code) return uni.showToast({
				// 		title: res.msg,
				// 		icon: 'none'
				// 	})
				// 	this.tempTrade = ''
				// 	let tempData = JSON.parse(res.data)
				// 	this.tempTrade = tempData.trade
				// 	uni.setStorageSync('tempTrade', this.tempTrade)
				// 	let system = uni.getSystemInfoSync().platform
				// 	if (system == 'android') {
				// 		this.ssurl = tempData.url
				// 		plus.runtime.openURL('alipays://platformapi/startapp?appId=20000067&url=' + this.ssurl, e => {
				// 			uni.showToast({
				// 				title: `打开支付宝失败！请检查是否已安装`,
				// 				icon: 'none'
				// 			})
				// 		})
				// 		setTimeout(() => {
				// 			this.ssurl = ''
				// 			this.isShowZfConf = true
				// 		}, 5000)
				// 	}
				// 	if (system == 'ios') {
				// 		plus.runtime.launchApplication({
				// 			action: tempData.url
				// 		})
				// 		setTimeout(() => {
				// 			this.ssurl = ''
				// 			this.isShowZfConf = true
				// 		}, 2000)
				// 	}
				// 	return
				// } else if (this.requestObj.payType == 2) { //余额支付
				// 	if (uni.getStorageSync('isHavePayPassword') == false) {
				// 		this.setPayPassword()
				// 	} else {
				// 		this.isOpenModal = true
				// 		this.focus = true
				// 	}
				// } else if (this.requestObj.payType == 4) {
				// 	//微信支付
				// 	var thate = this
				// 	setTimeout(() => {
				// 		thate.ssurl = ''
				// 		thate.isShowZfConf = true
				// 	}, 3000)
				// 	plus.share.getServices(res => {
				// 		let sweixin = null;
				// 		for (let i in res) {
				// 			if (res[i].id == 'weixin') {
				// 				sweixin = res[i];
				// 			}
				// 		}
				// 		//唤醒微信小程序
				// 		if (sweixin) {
				// 			sweixin.launchMiniProgram({
				// 					id: uni.getStorageSync('UUID'),
				// 					type: 2, //小程序版本  0-正式版； 1-测试版； 2-体验版。
				// 					path: 'pages/app-pay/app-pay-juhe/app-pay-juhe?api=' + this
				// 						.url + // this.$api.pay_gold_medal
				// 						'&requestObj=' + JSON.stringify(this.requestObj) + '&token=' + uni
				// 						.getStorageSync('token') + '&isJson=' + this.isJson + '&contnet=' +
				// 						JSON.stringify({}) //小程序的页面,用传的参数在小程序接值判断跳转指定页面
				// 				},
				// 				//目标小程序点击返回App后执行的回调,在此接收binderror="launchAppError"的参数
				// 				res => {
				// 					console.log(res)
				// 				}, err => {
				// 					console.log(err)
				// 				});
				// 		}
				// 	});
				// } else if (this.requestObj.payType == 0) {
				// 	let jsons = null
				// 	if (this.isJson == 1) {
				// 		console.log(this.payType, 'json')
				// 		jsons = await this.$fetch(
				// 			`${this.url}?payType=${this.requestObj.payType}&payPwd=${this.requestObj.payPwd}`, {
				// 				account: this.monery,
				// 				payPwd: this.requestObj.payPwd,
				// 				...this.contnet
				// 			}, 'POST', 'JSON')
				// 	} else {
				// 		jsons = await this.$fetch(`${this.url}`, {
				// 			account: this.monery,
				// 			payPwd: this.requestObj.payPwd,
				// 			...this.contnet,
				// 			payType: this.requestObj.payType
				// 		}, 'POST');
				// 	}
				// 	let res = jsons
				// 	if (res.code) return uni.showToast({
				// 		title: res.msg,
				// 		icon: 'none'
				// 	})
				// 	uni.requestPayment({
				// 		provider: 'alipay',
				// 		orderInfo: res.data, //微信、支付宝订单数据
				// 		success: function(res) {
				// 			console.log('success:' + JSON.stringify(res));
				// 			uni.showToast({
				// 				title: '购买成功~',
				// 				icon: 'none'
				// 			})
				// 			this.$emit('closePayPage');
				// 			this.paySuccess()
				// 			setTimeout(() => {
				// 				_this.closePayPage(true)
				// 			}, 800)
				// 		},
				// 		fail: function(err) {
				// 			console.log('fail:' + JSON.stringify(err));
				// 		}
				// 	})
				// } else if (this.requestObj.payType == 1) {
				// 	let jsons = null
				// 	if (this.isJson == 1) {
				// 		jsons = await this.$fetch(
				// 			`${this.url}?payType=${this.requestObj.payType}&payPwd=${this.requestObj.payPwd}`, {
				// 				account: this.monery,
				// 				payPwd: this.requestObj.payPwd,
				// 				...this.contnet
				// 			}, 'POST', 'JSON')
				// 	} else {
				// 		jsons = await this.$fetch(`${this.url}`, {
				// 			account: this.monery,
				// 			payPwd: this.requestObj.payPwd,
				// 			...this.contnet,
				// 			payType: this.requestObj.payType
				// 		}, 'POST');
				// 	}
				// 	let res = jsons
				// 	if (res.code) return uni.showToast({
				// 		title: res.msg,
				// 		icon: 'none'
				// 	})
				// 	uni.requestPayment({
				// 		provider: 'wxpay',
				// 		orderInfo: res.data, //微信、支付宝订单数据
				// 		success: function(res) {
				// 			uni.showToast({
				// 				title: '购买成功~',
				// 				icon: 'none'
				// 			})
				// 			this.$emit('closePayPage');
				// 			this.paySuccess()
				// 			setTimeout(() => {
				// 				_this.closePayPage(true)
				// 			}, 800)
				// 		},
				// 		fail: function(err) {
				// 			console.log('fail:' + JSON.stringify(err));
				// 		}
				// 	})
				// }
				this.$set(this.requestObj, this.keyWorld, this.monery)
				if (this.requestObj.payType == 2) { //余额支付
					if (uni.getStorageSync('isHavePayPassword') == false) {
						this.setPayPassword()
					} else {
						this.isOpenModal = true
						this.focus = true
					}
				} else if (this.requestObj.payType == 3) {
					let res = {}
					if (this.isJson == 1) {
						res = await this.$fetch(
							`${this.url}?payType=${this.requestObj.payType}&payPwd=${this.requestObj.payPwd}`, {
								account: this.monery,
								payPwd: this.requestObj.payPwd,
								paybegtype: 'wx',
								...this.contnet
							}, 'POST', 'JSON')
					} else {
						res = await this.$fetch(`${this.url}`, {
							account: this.monery,
							payPwd: this.requestObj.payPwd,
							...this.contnet,
							payType: this.requestObj.payType,
							paybegtype: 'wx'
						}, 'POST');
					}
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					uni.requestPayment({
						provider: 'wxpay',
						timeStamp: res.data.timeStamp, //时间戳
						nonceStr: res.data.nonceStr,
						package: res.data.package,
						signType: res.data.signType,
						paySign: res.data.paySign,
						success: function(res) {
							uni.showToast({
								title: '购买成功~',
								icon: 'none'
							})
							this.$emit('closePayPage');
							this.paySuccess()
							setTimeout(() => {
								_this.closePayPage(true)
							}, 800)
						},
						fail: function(err) {
							console.log('fail:' + JSON.stringify(err));
						}
					})
				}
			},
			async getBond() {
				let res4 = await this.$fetch(this.$api.property_list_by_type, {
					type: 1
				}, 'POST')
				this.bond = res4.data.Gold_medal_amount
			},
			setPayPassword() {
				uni.showModal({
					title: '您还未设置支付密码',
					content: '是否现在就去设置支付密码？',
					success: function(res) {
						if (res.confirm) {
							uni.navigateTo({
								url: '/pages/set-pay-code/set-pay-code'
							})
						} else if (res.cancel) {
							uni.showToast({
								title: '未设置支付密码~',
								icon: 'none'
							})
						}
					}
				})
			},
			// 获取当前用户信息，及服务标识
			async getUserInfo() {
				let res = await this.$fetch(this.$api.get_current_user, {}, 'GET')
				//	console.log(res)
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				//console.log(res.data)
				uni.setStorageSync('userInfo', res.data)
				uni.setStorageSync('userType', res.data.userType)
				uni.setStorageSync("level", res.data.user.level) //用户等级
				this.userInfo = res.data
				if (res.data.payPwdFlag) {
					uni.setStorageSync('isHavePayPassword', true)
				} else {
					uni.setStorageSync('isHavePayPassword', false)
				}
			},
		},
		// 获取数据配置
		beforeMount() {
			this.getUserInfo()
			this.getBond()
		},
	}
</script>
<style lang="less" scoped>
	.container {
		position: fixed;
		bottom: 0;
		left: 0;
		background: #F2F2F2;
		border-radius: 25rpx 25rpx 0 0;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: center;
		z-index: 999999;

		.share-modal {
			z-index: 9999999;
			position: fixed;
			bottom: 0;
			height: 100vh;
			width: 100vw;
			background-color: rgba(0, 0, 0, 0.40);
			display: flex;
			align-items: center;
			justify-content: center;

			&>.main {
				position: relative;
				top: -100rpx;
				width: 570rpx;
				// height: 250rpx;
				padding: 30rpx;
				background: #FFFFFF;
				box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.05) inset;
				border-radius: 17px;
				line-height: 40rpx;
				display: flex;
				flex-direction: column;
				align-items: center;

				&>.modal-title {
					font-size: 32rpx;
					font-weight: 600;
					margin-top: 20rpx;

					// margin: 30rpx 0 50rpx;
					&>.imgs {
						position: relative;

						image {
							position: absolute;
							top: 0rpx;
							bottom: 0;
							right: -80rpx;
							width: 50rpx;
							height: 40rpx;
						}
					}
				}

				.modal-content {
					width: 100%;
					height: 240rpx;

					// border: 1px solid;
					.modal-content-line {
						display: flex;
						justify-content: center;
						align-items: center;
						margin: 30rpx 30rpx;
					}

					.modal-content-money {
						width: 100%;
						height: 100rpx;
						margin-top: -10rpx;
						display: flex;
						justify-content: center;
						align-items: center;

						// border:1px solid;
						.rmb {
							font-size: 40rpx;
							color: #333333;
							margin-right: 10rpx;
							font-weight: 600;
							margin-top: 15rpx;
						}

						.rmb-num {
							font-size: 66rpx;
							color: #333333;
							font-weight: 600;
						}
					}

					.modal-content-type {
						width: 92%;
						margin: 0 auto;
						height: 80rpx;
						// border: 1px solid;
						display: flex;
						justify-content: space-between;
						align-items: center;

						.modal-content-type-left {}

						.modal-content-type-right {
							display: flex;
							justify-content: center;
							align-items: center;

							image {
								width: 40rpx;
								height: 100%;
							}

							text {
								margin-left: 6rpx;
								color: #333333;
								font-size: 26rpx;
							}
						}
					}
				}

				&>.pay-code {
					padding-bottom: 10rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					text-align: center;
					position: relative;

					&>input {
						position: absolute;
						top: 0;
						left: -100%;
						width: 200%;
						height: 100%;
						text-align: left;
						z-index: 9;
						opacity: 1;
					}

					&>.box {
						display: flex;
						align-items: center;
						justify-content: center;
						position: relative;
						width: 80rpx;
						height: 80rpx;
						margin-right: 10rpx;
						font-size: 22px;
						line-height: 90rpx;
						box-sizing: border-box;
						background-color: #F2F2F2;
						border-radius: 2px;

						&:last-child {
							margin-right: 0;
						}
					}

					&>.active {
						border: 2rpx solid #cccccc;

						@keyframes twinkling {
							0% {
								opacity: 0.1;
							}

							50% {
								opacity: 0.8;
							}

							100% {
								opacity: 0.1;
							}
						}

						&>.line {
							display: block;
							position: absolute;
							left: 50%;
							top: 50%;
							transform: translate(-50%, -50%);
							width: 2upx;
							height: 40upx;
							background: #333333;
							animation: twinkling 1s infinite ease;
						}
					}
				}

				.repwd {
					height: 62rpx;
					margin-bottom: -30rpx;
					font-size: 24rpx;
					color: #999999;
					// border: 1px solid;
					width: 92%;
					margin: 0 auto;
					display: flex;
					justify-content: flex-end;
					align-items: center;
				}

				&>.button {
					display: flex;
					align-items: center;
					justify-content: center;
					width: 180rpx;
					height: 70rpx;
					margin-top: 60rpx;
					border-radius: 50rpx;
					background-color: #FCC928;

					&:active {
						opacity: 0.7;
					}
				}

				&>.close {
					position: absolute;
					right: 30rpx;
					top: 30rpx;
					width: 42rpx;
					height: 42rpx;
				}
			}
		}

		&>.tip-pay {
			width: 690rpx;
			height: 50rpx;
			margin-top: 20rpx;
			display: flex;

			&>text:nth-child(1) {
				font-size: 32rpx;
				font-weight: 500;
				color: #ABABAB;
				line-height: 45rpx;
			}

			&>text:nth-child(2) {
				font-size: 36rpx;
				font-weight: bold;
				color: #000000;
				line-height: 45rpx;
				margin-left: calc(50% - 56rpx);
				transform: translate(-50%);
			}
		}

		&>.main {
			background-color: #FFFFFF;
			display: flex;
			flex-direction: column;
			padding: 30upx;
			margin-top: 30rpx;
		}

		&>.confirm {
			position: fixed;
			bottom: 73rpx;
			background: #FCC928;
			display: flex;
			justify-content: center;
			align-items: center;
			width: 690rpx;
			height: 88rpx;
			font-size: 36rpx;
			color: #402110;
			border-radius: 12rpx;

			&:active {
				opacity: 0.7;
			}
		}
	}

	.errorpw {
		animation: swing 1s .15s linear 1;
	}

	@keyframes swing {

		10%,
		90% {
			transform: translate(-4rpx, 0);
		}

		20%,
		80% {
			transform: translate(+4rpx, 0);
		}

		30%,
		70% {
			transform: translate(-6rpx, 0);
		}

		40%,
		60% {
			transform: translate(+6rpx, 0);
		}

		50% {
			transform: translate(-8rpx, 0);
		}
	}

	.mask {
		z-index: 50;
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		background: rgba(0, 0, 0, 0.40);
	}

	.moneytitle {
		width: 750rpx;
		height: 80rpx;
		margin-top: 60rpx;
		display: flex;
		justify-content: center;
		align-items: flex-end;
		font-size: 36rpx;
		font-weight: bold;
		color: #FE4B28;
		line-height: 45rpx;

		&>text {
			font-size: 80rpx;
			font-weight: bold;
			color: #FE4B28;
			line-height: 80rpx;
		}
	}

	.moneyInfo {
		font-size: 28rpx;
		font-weight: bold;
		color: #000000;
		line-height: 45rpx;
		margin-top: 20rpx;
		width: 690rpx;
	}

	.moneyInfoPs {
		font-size: 24rpx;
		font-weight: 500;
		color: #A5A5A5;
		line-height: 24rpx;
		margin-top: 14rpx;
		width: 690rpx;
	}

	.moneyInfobar {
		width: 690rpx;
		background: #FFFFFF;
		border-radius: 8rpx;
		margin-top: 26rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 36rpx 0;

		&>text:nth-child(1) {
			font-size: 26rpx;
			font-weight: 500;
			color: #000000;
			line-height: 58rpx;
			margin-left: 30rpx;
		}

		&>text:nth-child(2) {
			font-size: 26rpx;
			font-weight: 500;
			color: #FE4B28;
			line-height: 58rpx;
			margin-right: 30rpx;
		}
	}

	.payTapyTitle {
		width: 690rpx;
		font-size: 28rpx;
		font-weight: bold;
		color: #000000;
		line-height: 45rpx;
		margin-top: 40rpx;
		margin-bottom: 30rpx;
	}

	.choosePay {
		width: 690rpx;
		height: 100%;
		background: #FFFFFF;
		border-radius: 8rpx;
		margin-bottom: 212rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.payItem {
		width: 630rpx;
		height: 60rpx;
		margin: 40rpx 0;
		display: flex;
		align-items: center;
		justify-content: space-between;

		&>image {
			width: 60rpx;
			height: 60rpx;
		}

		&>text {
			font-size: 26rpx;
			font-weight: 500;
			color: #000000;
			line-height: 36rpx;
			margin-left: 20rpx;
			flex: 1;
		}

		.yueText {
			font-size: 26rpx;
			font-weight: 500;
			color: #A5A5A5;
			line-height: 45rpx;
			margin-left: 20rpx;
		}

		.select {
			width: 44rpx;
			height: 44rpx;
			border: 1px solid #AFAFAF;
			border-radius: 50%;
		}

		.selected {
			width: 45rpx;
			height: 45rpx;
			background-image: url(https://images.linglinggong.net/static/icon1/hdg.png);
			background-repeat: repeat;
			background-size: 100% 100%;
		}
	}

	.up {
		animation: toUp 0.3s ease-out 0s 1;
	}

	.aniclose {
		animation: close 0.3s linear 0s;
	}

	@keyframes toUp {
		0% {
			transform: translateY(1000rpx);
		}

		100% {
			transform: translateY(0);
		}
	}

	@keyframes close {
		0% {
			transform: translateY(0);
		}

		100% {
			transform: translateY(1110rpx);
		}
	}
</style>